/**
 * 客户端交互的模块
 */
import { Channel } from '@/utils/qt/qtsdk'
import { transferCodeResponse } from '@/utils/process'

/**
 * 客户端调用示例
 * @returns
 */
// 获取批次列表
export const getBatchList = async () => {
	const res = await Channel.widChannel.getBatchList({})
	return transferCodeResponse(res)
}

// 获取试卷列表
export const getPaperList = async () => {
	const res = await Channel.widChannel.getPaperList({})
	return transferCodeResponse(res)
}

// 绑定批次与试卷
export const bindBatchAndPaper = async (params: any) => {
	const res = await Channel.widChannel.bindBatchAndPaper(params)
	return transferCodeResponse(res)
}
// 打包
export const startClked = async () => {
	const res = await Channel.widChannel.packeting({})
	return res
}
